package model;

import java.util.Collection;

/**
 * @author samuel
 * 
 */
public class CityTrafficModel {
	private Collection<Time> time_between_signal_changes;
	private Distance distanceBetweenLights;
	private Distance initialDistanceOfTheCar;
	private Speed carSpeed;

	/**
	 * @param carSpeed
	 * @param distanceBetweenEachTrafficLight
	 * @param initialDistanceOfTheCar
	 * @param amountOfTimeBetweenSignalChanges
	 */
	protected CityTrafficModel(Speed carSpeed, Distance distanceBetweenEachTrafficLight,
			Distance initialDistanceOfTheCar,
			Collection<Time> amountOfTimeBetweenSignalChanges) {
		this.carSpeed=carSpeed;
		this.time_between_signal_changes = amountOfTimeBetweenSignalChanges;
		this.distanceBetweenLights = distanceBetweenEachTrafficLight;
		this.initialDistanceOfTheCar = initialDistanceOfTheCar;
	}

	/**
	 * @return
	 */
	public Distance getInitialCarDistance() {
		return initialDistanceOfTheCar;
	}

	/**
	 * @return
	 */
	public Distance getDistanceBetweenLights() {
		return distanceBetweenLights;
	}

	/**
	 * @return
	 */
	public Collection<Time> getTimeBetweenSignalChanges() {
		return time_between_signal_changes;
	}
	
	/**
	 * @return
	 */
	public Speed getCarSpeed()
	{
		return carSpeed;
	}

}
